﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Rose.Models.FeelingModel>>" %>
<%@ Import Namespace="Rose.Helper" %>


<asp:Content ID="Content1" ContentPlaceHolderID="LeftContent" runat="server">

<%Html.RenderAction("SelfPart","Home"); %>
<%Html.RenderAction("SearchBarPart", "Search"); %>
 <%Html.RenderAction("RecommendPart", "Home", new { currentpage =1, type = "university", isOppGender = false, isDescending = true });%>
 <%Html.RenderAction("HotPart", "Home"); %>
 <%Html.RenderAction("BirthPart", "Home"); %>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MiddleContent" runat="server">



<div id="typefeeling">
    <form method="post" action="<%=Url.Action("FriendFeelingList","FriendTrend") %>">
    <p><a >种类:</a><a ><%=Html.DropDownList("type") %></a></p>

    <div class="box">
    <a >起始:</a><input id="minTime" type="text" name="minTime"/>
    </div>
    <div class="box">
    <a >终止:</a><input id="maxTime" type="text" name="maxTime" />
    </div>

    <div class="nobox">
    <p><input type="hidden" name="friendId" value="<%=ViewData["FriendId"].ToString() %>" /></p>
    <p><input id="searchfeelng" type="submit" value="" /></p>

    </div>
    </form>
 </div>



<div id="trendlist">
    <div class="trend"><p>(共<%=int.Parse(ViewData["AllCount"].ToString())%>)条记录</p></div>
    <div class="trend"> 
    <p><%for (int i = 1; i < int.Parse(ViewData["MaxPage"].ToString()); i++)
       {%>
       <a href="<%=Url.Action("ShowFeelingList","Feeling",new{currentpage=i}) %>"> <%=i%></a>
       <%} %></p>
    </div>


     <%foreach (var item in Model)
      { %>
  <div class="clear"></div>

<%Html.RenderAction("SingleFeelingPart", "Feeling", item); %>


 <%} %>


 </div>         <%--end of trendlist--%>
  

 
   

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">

<%Html.RenderAction("HomeScriptPart", "Home"); %>
<%Html.RenderAction("FeelingScriptPart", "Feeling"); %>
</asp:Content>
